package com.xuecheng.teaching;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author HuangYuwu
 * @CreateTime 2022/9/21 23:38
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.xuecheng.teaching.mapper") // 指定mapper包扫描范围
@ComponentScan(basePackages = {"com.xuecheng.teaching", "com.xuecheng.web",
        "com.xuecheng.mybatis"}) // 指定启动类包扫描范围
@EnableFeignClients(basePackages = "com.xuecheng.*.api")
public class TeachingApplication {

    public static void main(String[] args) {
        SpringApplication.run(TeachingApplication.class, args);
    }
}


